package edu.ccut.saturn.operation.database;

import java.sql.Connection;
import java.util.ArrayList;

import edu.ccut.saturn.component.SaturnData;

public class QueryBySQL {
	private static edu.ccut.saturn.basecomponent.database.facade.QueryBySQL facade = null;
	private static QueryBySQL instance  = new QueryBySQL();
    private QueryBySQL(){
    	facade = new edu.ccut.saturn.basecomponent.database.facade.QueryBySQL();
    };
    public static QueryBySQL getInstance(){
    	return instance;
    }

	public ArrayList<SaturnData> execute(String fullKey ,String sql,Connection conn) throws Exception {
		return (ArrayList<SaturnData>)facade.execute(fullKey, sql, conn);
	}

}
